//
//  UILabel+Color.m
//  YZMicroStock
//
//  Created by wangminhong on 16/4/15.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import "UILabel+Color.h"
#import "NSNumber+Utils.h"

@implementation UILabel (Color)

- (void)setTextColorWithGreatNumber:(double)greatNumber andSmallNumber:(double)smallNumber{
    
    if ([@(greatNumber) isGreaterThanDouble:smallNumber]) {
        
        self.textColor = [YZMAppStyle colorForRiseText];
        
    }else if([@(greatNumber) isEqualWithDouble:smallNumber]){
        
        self.textColor = [YZMAppStyle colorForGrayText];
        
    }else{
        
        self.textColor = [YZMAppStyle colorForDropText];
    }
}

@end
